import constants from '@/commons/constants';
const moduleCode = constants.MODULE_SYS_CODE;

export default [
    {
        path: '/store',
        redirect: '/store/list'
    },
    {
        path: '/store/list',
        name: 'storeList',
        component: () => import('@/views/sys/store/list/index.vue'),
        meta: {
            title: '店铺管理',
            code: 'storeManagement_list',
            keepAlive: true
        }
    },
    {
        path: '/store/list/add',
        component: () => import('@/views/sys/store/list/add/index.vue'),
        meta: {
            title: '新增店铺',
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/store/list/edit',
        component: () => import('@/views/sys/store/list/add/index.vue'),
        meta: {
            title: '编辑店铺',
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/store/info',
        component: () => import('@/views/sys/store/info/index.vue'),
        meta: {
            title: '商户信息',
            code: 'storeManagement_info'
        }
    },
    {
        path: '/store/info/auth',
        component: () => import('@/views/sys/store/auth/index.vue'),
        meta: {
            title: '企业认证',
            permAuth: false,
            moduleCode
        }
    }
];
